package com.ruoyi.common.im.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.im.entity.YytImRecentSession;
import com.ruoyi.common.im.dao.YytImRecentSessionMapper;
import com.ruoyi.common.im.service.YytImRecentSessionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.vo.MyRecentUsersListVO;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* <p>
    * 即时通讯-最近会话 服务实现类
    * </p>
*
* @author MrPing
* @since 2022-08-23
*/
@Service
public class YytImRecentSessionServiceImpl extends ServiceImpl<YytImRecentSessionMapper, YytImRecentSession> implements YytImRecentSessionService {

    @Autowired
    private YytImRecentSessionMapper yytImRecentSessionMapper;

    @Override
    public List<MyRecentUsersListVO> getUsersList(String memberId) {
        return yytImRecentSessionMapper.getUsersList(memberId);
    }


}
